const http = require("http");

const server = http.createServer(function(require,response){
    response.setHeader("content-type","text/html;charset=utf8");
    response.write("你好世界");
    response.end();
})

server.listen(8080,()=>{
    console.log("服务启动完毕");
})